<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group" hidden>
        <label class="control-label col-xs-12 col-sm-2">{:__('Project_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-project_id" data-rule="required" data-source="mw_project/index" class="form-control selectpage" name="row[project_id]" type="text" value="{$_GET['project_id']}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Connection_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-connection_id" data-rule="required" data-source="mw_connection/index" class="form-control selectpage" name="row[connection_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" placeholder="请输入模块名称(允许英文及下划线)，例：user" class="form-control" name="row[name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Table_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-table_name" placeholder="请输入数据库表名，例：rs_user" class="form-control" name="row[table_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Alias_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-alias_name" placeholder="请输入数据库表别名，例：a" class="form-control" name="row[alias_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Api')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-api" class="form-control " rows="5" name="row[api]" cols="50">{
    "host":"http://192.168.199.105:9501",
    "path":"/admin/admin"
}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Relation_condition')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-relation_condition" class="form-control " rows="5" name="row[relation_condition]" cols="50">[{
	"name": "rs_device_type",
	"join_type": "left",
	"relation_type": "one",
	"condition": [{
		"main": "device_type_id",
		"relation": "id"
	}]
}]</textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
